<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>后台管理 - {:seo('title')}</title>
    <link rel="stylesheet" href="{__CSS__}/libs/layui/css/layui.css"/>
    <link rel="stylesheet" href="{__CSS__}/module/admin.css?v=317"/>
    <!-- 风格 -->
    <link rel="stylesheet" href="{__CSS__}/css/theme.css"/>
</head>
<body class="layui-layout-body">
<div class="layui-layout layui-layout-admin">
    <!-- 头部 -->
    <div class="layui-header">
        <div class="layui-logo">
       <cite><span><img src="<?php echo array_rand(array(10,20)) == 1 ? seo('image') : seo('logo');?>" width="120" height="60"></span></cite>
        </div>
        <ul class="layui-nav layui-layout-left">
            <li class="layui-nav-item" lay-unselect>
                <a ew-event="flexible" title="侧边伸缩"><i class="layui-icon layui-icon-shrink-right"></i></a>
            </li>
            <li class="layui-nav-item" lay-unselect>
                <a ew-event="refresh" title="刷新"><i class="layui-icon layui-icon-refresh-3"></i></a>
            </li>
        </ul>
        <ul class="layui-nav layui-layout-right">
            <li class="layui-nav-item layui-hide-xs" lay-unselect>
                <a ew-href="/" title="系统续期"><i class="layui-icon layui-icon-time"></i> 有效期：{$list|date='Y-m-d H:i:s'}</a>
            </li>
            <li class="layui-nav-item" lay-unselect>
                <a href="{:seo('url')}" target="_blank" title="网站首页"><i class="layui-icon layui-icon-home">网站首页</i></a>
            </li>
            <li class="layui-nav-item layui-hide-xs" lay-unselect>
                <a ew-event="fullScreen" title="全屏"><i class="layui-icon layui-icon-screen-full"></i> 全屏显示</a>
            </li>
            <li class="layui-nav-item" lay-unselect style="margin-right: 25px;">
                <a><img style="border-radius: 50%;" src="{$image}" alt="" width="35" height="35" />
                    <!-- <i class="layui-icon layui-icon-user"></i> -->
                    <cite><span style="color: #fff;background-color: #009688;border-radius:5px;font-size: 10px;padding: 4px 8px;">{$group_name}</span>{$admin.username}</cite>
                </a>
                <dl class="layui-nav-child">
                    <dd lay-unselect>
                        <a ew-event="open" data-type="2" data-content="{:url('lnadmin/editPassword', ['id'=>$admin->id])}"><i class="layui-icon layui-icon-password" style="font-size: 18px; color: #1E9FFF;"></i>&emsp;修改密码</a>
                    </dd>
                    <dd lay-unselect>
                        <a ew-href="{:url('lnadmin/clearTempLog')}" onclick="return confirm('确认要清除缓存？');"><i class="layui-icon layui-icon-delete" style="font-size: 18px; color: #1E9FFF;"></i>&emsp;清除缓存</a>
                    </dd>
                    <hr>
                    <dd lay-unselect>
                        <a ew-event="logout" data-url="{:url('lnadmin/logout')}"><i class="layui-icon layui-icon-logout" style="font-size: 18px; color: #1E9FFF;"></i>&emsp;退出登录</a>
                    </dd>
                </dl>
            </li>
            <li class="layui-nav-item" lay-unselect>
                <i class="layui-icon layui-icon-more-vertical"></i>
            </li>

                <!-- 主 题 配 置 -->
                <li class="layui-nav-item setting"><a href="#" class="layui-icon layui-icon-more-vertical">89</a></li>
        </ul>
    </div>

   
    <!-- 侧边栏 -->
    {include file="common/menu" /}

    <!-- 主体部分 -->
    <div class="layui-body"></div>
    <!-- 底部 -->
    <div class="layui-footer" style="background-color: #393D49;color:#ffffff;">
       <a href="http://m.ztuc.cn" target="_blank"><font style="color:#ffffff;">{:seo('copyright')}</font></a>
        <span class="pull-right">客服热线:{:seo('iphone')}</span>
    </div>
</div>

<!-- 加载动画 -->
<div class="page-loading">
    <div class="ball-loader">
        <span></span><span></span><span></span><span></span>
    </div>
</div>

<!-- js部分 -->
<script type="text/javascript" src="{__JS__}/layui/layui.js"></script>
<script type="text/javascript" src="{__JS__}/js/common.js"></script>
<script>
    layui.use(['index'], function () {
        var $ = layui.jquery;
        var index = layui.index;
        // 默认加载主页
        index.loadHome({
            menuPath: '/lnadmin/home',
            menuName: '<i class="layui-icon layui-icon-home"> </i>'
        });
        $('.layui-body>.layui-tab[lay-filter="admin-pagetabs"]').attr('lay-autoRefresh', 'true');
    });
    
</script>
</body>
</html>